package com.tianye.salon.dao;

import java.util.List;

import com.tianye.salon.model.AdminModule;
import com.tianye.salon.model.AdminRole;




public interface AdminRoleMapper extends IBaseMapper<AdminRole> {
	int insert(AdminRole role);
	
	int insertSelective(AdminRole role);
	
	int insertrolemodule(AdminRole role, AdminModule module);
	
	int deleteByPrimaryKey(Integer id);
	
	AdminRole selectByPrimaryKey(Integer id);
	
	AdminRole selectRoleModuleByPrimaryKey(int id);
	
    List<AdminRole> selectAll();
    
    List<AdminRole> selectAllRoleModule();
    
    int deleteRoleModulesByRoleid(int rid);
    
    int updateRole(AdminRole role);
    
    int deleteModulesByRoleid(int rid);
}